package com.eight.course.controller;

import com.eight.common.pojo.TbCheckCourse;
import com.eight.common.vo.Result;
import com.eight.course.service.CheckCourseService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: qy8-education
 * @description:
 * @author: 张亚祥
 * @create: 2023-05-30 09:03
 **/
@RestController
@RequestMapping("/core/checkCourse")
@ApiModel(value = "课程审核")
public class CheckCourseController {

    @Resource
    private CheckCourseService checkCourseService;

    @PostMapping("updateCheck")
    @ApiOperation(value = "课程审核修改")
    public Result updateCheckCourse(@RequestBody TbCheckCourse tbCheckCourse){
        int i = checkCourseService.updateCheck(tbCheckCourse);
        return Result.success();
    }
}
